package com.example.tse.rbhttpservice.service.goods.model;

import java.util.List;
import java.util.ArrayList;
import com.example.tse.rbhttpservice.service.RudderResponse;


//import com.rbyair.services.goods.model.GoodsGetList;
/**
* 获取商品的列表，列表形式有普通商品列表、专场列表，默认排序最新倒叙（p_order最优先排序），特殊appmarketable字段标示当前商品是否可以在app中显示
* @author wliu
* edit tse
*/
public class GoodsGetListResponse extends RudderResponse{

private List<GoodsGetList> getList = new ArrayList<GoodsGetList>();


/**
* @return getList
*/
public List<GoodsGetList> getGetList() {
return this.getList;
}

/**
* @return getList
*/
public void setGetList(List<GoodsGetList> getList) {
this.getList = getList;
}
/**
methodName    GetList
type          List<GoodsGetList>
name          getList
defaultType   new ArrayList<GoodsGetList>()
*/

/**


    private static void filterFor(GoodsGetList goods) {
        if (goods.getProductId() == null) {
            goods.setProductId("");
        }
        if (goods.getPrice() == null) {
            goods.setPrice("");
        }
        if (goods.getMktprice() == null) {
            goods.setMktprice("");
        }
        if (goods.getName() == null) {
            goods.setName("");
        }
        if (goods.getThumbnailPic() == null) {
            goods.setThumbnailPic("");
        }
        if (goods.getBn() == null) {
            goods.setBn("");
        }
        if (goods.getBuyerNum() == null) {
            goods.setBuyerNum("");
        }
        if (goods.getQuantity() == null) {
            goods.setQuantity("");
        }
    }

    public static void filter(GoodsGetListResponse goods) {
        if (goods.getGetList() == null) {
            goods.setGetList(new ArrayList<GoodsGetList>());
        } else {
            for (GoodsGetList item : goods.getGetList()) {
                filterFor(item);
            }
        }
    }

*/

}
